# coding: utf-8
# @Author : lryself
# @Date : 2020/12/14 10:54
# @Software: PyCharm
from ..controller.informationCodeController import InformationCodeController


class InformationCodeManager(InformationCodeController):
    @classmethod
    def get_parentCodeID_0_codeList(cls):
        args = {"ParentCodeID": 0}
        return cls.get_list(**args)

    @classmethod
    def get_codeList_by_parentCodeID(cls, ParentCodeID):
        args = {"ParentCodeID": ParentCodeID}
        return cls.get_list(**args)
